.class final Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;
.super Lcom/burstly/lib/component/networkcomponent/burstly/html/OrmmaBurstlyScriptAdaptor;
.source "MraidBurstlyScriptAdaptor.java"


# direct methods
.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 40
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/OrmmaBurstlyScriptAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 41
    return-void
.end method


# virtual methods
.method protected createFullscreenOverlay()Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay",
            "<*>;"
        }
    .end annotation

    .prologue
    .line 65
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->getWebView()Lcom/burstly/lib/util/UiSafeWebView;

    move-result-object v0

    check-cast v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;

    .line 66
    .local v0, mraidView:Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;

    invoke-direct {v1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidFullscreenOverlay;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V

    .line 67
    .local v1, overlay:Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay;,"Lcom/burstly/lib/component/networkcomponent/burstly/html/ScriptInterstitialOverlay<Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;>;"
    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setOpenedOverlay(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer;)V

    .line 68
    return-object v1
.end method

.method protected createStatisticsSender()Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;
    .locals 3

    .prologue
    .line 57
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;

    invoke-direct {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;-><init>()V

    .line 58
    .local v0, builder:Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->getViewId()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;->setBurstlyViewId(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCrid()Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;->setCreativeId(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;

    move-result-object v1

    const-string v2, "mraid"

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;->setEventType(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->getRequestData()Lcom/burstly/lib/network/beans/RequestData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/RequestData;->getZone()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;->setZoneId(Ljava/lang/String;)Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;

    .line 60
    invoke-virtual {v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender$StatisticsSenderBuilder;->build()Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;

    move-result-object v1

    return-object v1
.end method

.method public mraidViewCreated(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V
    .locals 2
    .parameter "view"

    .prologue
    .line 73
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/OrmmaBurstlyScriptAdaptor;->mraidViewCreated(Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;)V

    .line 74
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->createStatisticsSender()Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/MraidBurstlyScriptAdaptor;->createMediaListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/StatisticsSender;)Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;

    move-result-object v0

    .line 75
    .local v0, mediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;
    invoke-virtual {p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setRichMediaListener(Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;)V

    .line 76
    check-cast v0, Landroid/webkit/WebViewClient;

    .end local v0           #mediaListener:Lcom/burstly/lib/component/networkcomponent/burstly/html/IRichMediaAdListener;
    invoke-virtual {p1, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 77
    const/16 v1, 0x82

    invoke-virtual {p1, v1}, Lcom/burstly/lib/component/networkcomponent/burstly/html/mraid/MraidView;->requestFocus(I)Z

    .line 78
    return-void
.end method
